<template>
	<view class="pages">
		<view class="title">
			{{DetalisData.title }}
		</view>
		<view class="date">
			{{DetalisData.created_at}}
		</view>
		<div class="content" >
			<img :src="DetalisData.cover"  style="margin: 0 auto 0;width: 100%;height: 700rpx;">
		</div>
		<view class="sss">
			<u-parse :content="DetalisData.content"></u-parse>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				title:'',
				DetalisData: {}
			}
		},
		onLoad(options) {
			this.getList(options.fliterID,options.id)
		},
		methods: {
		// 获取数据
		async getList(fliterID,id) {
			uni.showLoading({
				title: this.$t('Laoding'),
			})
			const res = await this.$get(`/backend/article/list`, {
				cate_id: id,
				pageSize: 100,
				title: this.title
			},1)
				res.data.data.list.forEach( items => {
				if(items.id == fliterID) {
					this.DetalisData = items
					console.log(this.DetalisData, '/biz/app/libraryPage');
				}
			})
			if(res.data.data.total >= 0) {
				this.dadaList = res.data.data.list 
			}
		}
		}
	}
</script>

<style scoped>
	.pages {
		width: 100%;
		height: 100%;
		padding: 30rpx 24rpx 60rpx;
		box-sizing: border-box;
	}

	.title {
		width: 100%;
		margin-top: 30rpx;
		text-align: center;
		font-size: 40rpx;
		font-weight: 900;
	}

	.content {
		width: 100%;
		display: flex;
		align-items: center;
		margin-top: 40rpx;
	}

	.date {
		width: 100%;
		height: 20rpx;
		margin-top: 30rpx;
		text-align: center;
	}
	.biaoji {
		width: 642rpx;
		height: 80rpx;
		background-color: #273562;
		line-height: 80rpx;
		text-align: center;
		color: #fff;
		margin:30rpx auto 0rpx;
		border-radius: 16rpx;
	}
	.biaoji:active {
		/* background-color: #808080; */
		background-color: #384d8d;
		
	}
</style>